-
Notifications
You must be signed in to change notification settings - Fork 131
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor edit address #13633
base: issue/12439-edit-order-navigation
Are you sure you want to change the base?
Refactor edit address #13633
Conversation
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
@@ -652,3 +701,9 @@ data class InputValue( | |||
val EMPTY = InputValue("") | |||
} | |||
} | |||
|
|||
@Parcelize | |||
data class DestinationShippingAddress( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I might move this class to the model package when working on the network layer.
📲 You can test the changes from this Pull Request in WooCommerce-Wear Android by scanning the QR code below to install the corresponding build.
|
} | ||
|
||
@Suppress("UnusedParameter") | ||
private fun onUpdateDestinationAddress(editableAddress: EditableAddress) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the next pull request, I will focus on the network layer and update the destination address.
📲 You can test the changes from this Pull Request in WooCommerce Android by scanning the QR code below to install the corresponding build.
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## issue/12439-edit-order-navigation #13633 +/- ##
====================================================================
Coverage 38.07% 38.08%
+ Complexity 9068 9058 -10
====================================================================
Files 2058 2058
Lines 112768 112804 +36
Branches 14298 14298
====================================================================
+ Hits 42936 42960 +24
- Misses 65928 65937 +9
- Partials 3904 3907 +3 ☔ View full report in Codecov by Sentry. |
Part of: #12440
Description
This PR refactors the edit origin address classes to add support for destination addresses. The changes introduced here include:
WooShippingEditAddressViewModel
to use Address instead ofOriginShippingAddress
In the next PR, I'll be working on the destination address networking and connecting the data with the UI. I will also update the view model unit tests to include tests about the flow
Testing information
Checking that updating the origin address keeps working as expected.
TC1
TC2
The tests that have been performed
Images/gif
Screen_recording_20250224_072340.mp4
RELEASE-NOTES.txt
if necessary. Use the "[Internal]" label for non-user-facing changes.Reviewer (or Author, in the case of optional code reviews):
Please make sure these conditions are met before approving the PR, or request changes if the PR needs improvement: